import React from "react";
import LayOutIndex from "@/components/layout/index.jsx";
import lazyLoad from "@/router/utils/lazyLoad.jsx";
import proTable from "@/views/proTable/index.jsx";

// 超级表格模块
const proTableRouter = [
    {
        element: <LayOutIndex/>,
        meta: {
            title: "超级表格"
        },
        children: [
            {
                path: "/proTable/useHooks",
                element: lazyLoad(proTable),
                meta: {
                    requiresAuth: true,
                    title: "使用 Hooks",
                    key: "useHooks"
                }
            },
            {
                path: "/proTable/useComponent",
                element: lazyLoad(proTable),
                meta: {
                    requiresAuth: true,
                    title: "使用 Component",
                    key: "useComponent"
                }
            }
        ]
    }
];

export default proTableRouter;
